package com.zjitc.model;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/19 14:52
 * @description:
 */
public class Order {
  private String oid;
  private double total;

  @Override
  public String toString() {
    return "Order{" +
            "oid='" + oid + '\'' +
            ", total=" + total +
            ", ordertime='" + ordertime + '\'' +
            ", state=" + state +
            ", name='" + name + '\'' +
            ", phone='" + phone + '\'' +
            ", addr='" + addr + '\'' +
            ", user=" + user +
            ", uid=" + uid +
            ", orderitemList=" + orderitemList +
            '}';
  }

  public String getOid() {
    return oid;
  }

  public void setOid(String oid) {
    this.oid = oid;
  }

  public double getTotal() {
    return total;
  }

  public void setTotal(double total) {
    this.total = total;
  }

  public String getOrdertime() {
    return ordertime;
  }

  public void setOrdertime(String ordertime) {
    this.ordertime = ordertime;
  }

  public Integer getState() {
    return state;
  }

  public void setState(Integer state) {
    this.state = state;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getAddr() {
    return addr;
  }

  public void setAddr(String addr) {
    this.addr = addr;
  }

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }

  public List<Orderitem> getOrderitemList() {
    return orderitemList;
  }

  public void setOrderitemList(List<Orderitem> orderitemList) {
    this.orderitemList = orderitemList;
  }

  private String ordertime;

  public Order(String oid, double total, String ordertime, Integer state, String name, String phone, String addr, User user, Integer uid, List<Orderitem> orderitemList) {
    this.oid = oid;
    this.total = total;
    this.ordertime = ordertime;
    this.state = state;
    this.name = name;
    this.phone = phone;
    this.addr = addr;
    this.user = user;
    this.uid = uid;
    this.orderitemList = orderitemList;
  }

  private Integer state;
  private String name;
  private String phone;
  private String addr;

  public Order() {
  }

  private User user;
  private Integer uid;
  private List<Orderitem> orderitemList;

}
